import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useCount = defineStore('count', () => {
	//全局数据 state
	const count = ref(1)
	const obj = ref({ name: '大拿', age: 16 })
	//
	return { count, obj }
}, {
	unistorage: {
		key: 'wang',
		paths: ['count']
	}
})